<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Dictionary extends Model
{
    //
    protected $fillable=['name','intro','pid'];

    public function child(){

        return $this->hasMany(Dictionary::class,'pid','id');
    }
}
